import App from './App'
import store from '@/store'
import uView from '@/uni_modules/uview-ui'
import api from '@/static/js/api'
import upload from '@/static/js/upload'
import request from '@/static/js/request'
import util from '@/static/js/util.js'
import minxin from '@/minxin'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
Vue.prototype.$api = api
Vue.prototype.$store = store;
Vue.prototype.$upload = upload
Vue.prototype.$request = request;
Vue.prototype.$showToast = util.showToast;
Vue.use(uView)
Vue.mixin(minxin)
App.mpType = 'app'
const app = new Vue({
	...App,
	store
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif